#!/usr/bin/make -f


build: build-stamp
build-stamp: 
	./configure
	make
	touch build-stamp

install: install-stamp
install-stamp:
	dh_testdir
	dh_testroot
	dh_installdirs
	install -m 755 coreunreg debian/openpanel-coreunreg/usr/bin
	touch install-stamp

binary-indep: build install

binary-arch: build install
	dh_installdocs -a
	dh_installdeb -a
	dh_compress -a
	dh_fixperms -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

clean:
	rm -f build-stamp install-stamp
	[ ! -f makeinclude ] || make clean
	dh_clean

.PHONY: build binary binary-arch binary-indep clean install
